# 计算时差
from datetime import datetime, timedelta

start = datetime(2004,5, 6,7,8,32)


delta01 = timedelta(weeks = 8)
delta02 = timedelta(days = 31)
delta03 = timedelta(hours = 20)
delta04 = timedelta(minutes = 30)
delta05 = timedelta(minutes = 40)


print(delta01)
print(delta02)
print(delta03)
print(delta04)
print(delta05)

# 可以通过时间节点直接就散
print(start + delta02)
